package com.hd.trans.share;

import android.content.Context;

import com.hd.trans.ui.base.AppContextProvider;


public abstract class BaseRetrofitRequest {
    protected Context mAppContext = AppContextProvider.getContext();

    /**
     * 接口正在请求
     */
    protected boolean isRequesting = false;

    protected boolean isNetAvailable() {
        return NetStatusUtil.isNetworkAvailable();
    }

    public boolean isRequesting() {
        return isRequesting;
    }

    public void setRequesting(boolean requesting) {
        isRequesting = requesting;
    }
}
